/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.crm.action.sale.contacts;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.crm.mapper.sale.contacts.PotentialContactsEmailMapper;
public class PotentialContactsEmail extends BaseAction
{
    @Autowired(required=false)
	private PotentialContactsEmailMapper mapper;
    /**
    潜在客户联系人邮件
    */
    
    public Map potentialContactsEmail() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_send=mapper.s_send(params,pagination);
        s_send.setPagedListInfo(pagination);
        s_send.setSelectNone("发送情况明细");
        result.put("s_send", s_send);
        
        return result;
    }
    /**
    选择公共关系邮箱
    */
    
    public Map potentialContactsPubEDress() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_email=mapper.s_email(params);
        result.put("s_email", s_email);
        
        return result;
    }
    /**
    邮件明细
    */
    
    public Map potentialContactsEmailDet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        
        
        
        
        SQLList<SQLMap> t_send=mapper.t_send(params);
        SQLMap t_send_emt=t_send.getExistfirst();
        result.put("t_send", t_send_emt);
        
        
        SQLList<SQLMap> s_recipient=mapper.s_recipient(params);
        s_recipient.setSelectNone("发送邮箱");
        result.put("s_recipient", s_recipient);
        
        
        SQLList<SQLMap> s_file=mapper.s_file(params);
        s_file.setSelectNone("发送附件");
        result.put("s_file", s_file);
        
        return result;
    }
    /**
    联系人发件明细
    */
    
    public Map potentialContactsSendDet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> fujianmingxi=mapper.fujianmingxi(params);
        fujianmingxi.setSelectNone("附件明细");
        result.put("fujianmingxi", fujianmingxi);
        
        
        SQLList<SQLMap> xuanzelianxirenmingxi=mapper.xuanzelianxirenmingxi(params);
        xuanzelianxirenmingxi.setSelectNone("选择联系人明细");
        result.put("xuanzelianxirenmingxi", xuanzelianxirenmingxi);
        
        
        
        
        SQLList<SQLMap> s_recipient1=mapper.s_recipient1(params);
        s_recipient1.setSelectNone("选择联系人明细");
        result.put("s_recipient1", s_recipient1);
        
        
        SQLList<SQLMap> s_mailing=mapper.s_mailing(params);
        SQLMap s_mailing_emt=s_mailing.getExistfirst();
        result.put("s_mailing", s_mailing_emt);
        
        
        SQLList<SQLMap> xiaoximingxi=mapper.xiaoximingxi(params);
        SQLMap xiaoximingxi_emt=xiaoximingxi.getExistfirst();
        result.put("xiaoximingxi", xiaoximingxi_emt);
        
        return result;
    }
    /**
    */
    
    public Map d_mail() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_mail(params);
        
        return result;
    }
    /**
    潜在客户联系人邮件修改
    */
    
    public Map potentialContactsEmailSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.potentialContactsEmailSubmit(params);
        
        return result;
    }
}